package com.kefu.web.im.service.filter;

import org.apache.commons.lang.StringUtils;

import com.kefu.web.im.domain.SeatStatus;


@SuppressWarnings("deprecation")
public class SeatStatusOrgiFilter implements KeyPredicate<String>{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1236581634096258855L;
	private String orgi ;
	/**
	 * 
	 */
	public SeatStatusOrgiFilter(String orgi){
		this.orgi = orgi ;
	}
	public boolean evaluate(String key) {
		SeatStatus agent = (SeatStatus) CacheHelper.getAgentStatusCacheBean().getCacheObject(key, orgi);
		return !StringUtils.isBlank(orgi) && orgi.equals(agent.getOrgi());
	}
}